package com.xnew.dict.mapper;

import com.xnew.bean.common.DictionaryInfo;
import com.xnew.dict.bean.EvaluateInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @version V1.0
 * @ClassName: DictCommonMapper
 * @Description: 数据字典操作类
 * @author: yangcd
 * @date:2020/12/30 10:23
 */
@Mapper
@Repository
public interface DictCommonMapper {
    List<DictionaryInfo> initDictToRedisResult() throws Exception;

    List<EvaluateInfo> buildEvaluateList(@Param("evaluateType") String evaluateType) throws Exception;

    void saveDictTypeCommon(@Param("typeCode") String typeCode, @Param("typeName") String typeName) throws Exception;

    void saveDictCodeCommon(Map param) throws Exception;

    List<Map<String, Object>> queryDictType(@Param("typeCode") String typeCode) throws Exception;

    List<Map<String, Object>> queryDictTypeList(Map param);

    List<Map<String, Object>> queryDictCodeBean(@Param("type") String type, @Param("code") String code);

    List<DictionaryInfo> queryDictCommonRegion() throws Exception;

    List<DictionaryInfo> queryDictCommonLinkage(@Param("type") String type) throws Exception;

    List<DictionaryInfo> queryDictCommonRegionTwoLe();
}
